import request from '@/utils/request'

// 获取云端图片列表
export function getCloudImages(params) {
  return request({
    url: '/static_web/api/cloud-images/',
    method: 'get',
    params
  })
}

// 获取云端图片统计
export function getCloudImageStats(params) {
  return request({
    url: '/static_web/api/cloud-images/stats/',
    method: 'get',
    params
  })
}

// 获取云端图片详情
export function getCloudImageDetail(params) {
  return request({
    url: '/static_web/api/cloud-images/detail/',
    method: 'get',
    params
  })
}

// 删除云端图片
export function deleteCloudImages(data) {
  return request({
    url: '/static_web/api/cloud-images/delete/',
    method: 'post',
    data
  })
}

// 删除网站（含云端图片）
export function deleteWebsiteWithImages(data) {
  return request({
    url: '/static_web/api/website/delete-with-images/',
    method: 'post',
    data
  })
}

// 同步页面图片
export function syncPageImages(data) {
  return request({
    url: '/static_web/api/cloud-images/sync-page/',
    method: 'post',
    data
  })
}
